/* 
 * File:   secondForm.h
 * Author: lynn
 *
 * Created on 2010年11月1日, 下午9:47
 */

#ifndef _SECONDFORM_H
#define	_SECONDFORM_H

#include "ui_secondForm.h"
#include<QtGui/QPainter>
#include<QtCore/QPoint>
#include<Data.h>
#include<QTimer>
#include"NewForm.h"

class secondForm : public QDialog,public Ui::secondForm {
    Q_OBJECT
public:
    secondForm(IplImage *frame, NewForm *Form, QWidget *parent =0);
    virtual ~secondForm();
    void showIplImage(IplImage *img);
    void nextFrame(IplImage *frame);
protected:
    void paintEvent(QPaintEvent*e);
    void closeEvent(QCloseEvent* e);
private slots:
    void closedForm();

private:
    NewForm *firstForm;
    CvCapture *capture;
    IplImage *iplImg;
    IplImage *frame;
    QImage *qImg;
    QTimer *timer;

    int count;
   // IplImage*iplImg;
    Ui::secondForm widget;
    //QImage *qImg;
};

#endif	/* _SECONDFORM_H */
